#include <iostream>

using namespace std;

//指定该结构体以4字节对齐
struct alignas(4) Stu1
{
    char a;
};

struct Stu2
{
    char a;
};

int main()
{
    cout<<sizeof(Stu1)<<endl;
    cout<<sizeof(Stu2)<<endl;
}

